//
//  SLRefreshBoatViewModel.m
//  StarLight
//
//  Created by Duke.wu on 16/6/13.
//  Copyright © 2016年 Duke.Wu. All rights reserved.
//

#import "SLRefreshBoatViewModel.h"
#import "SLNetWork.h"


@implementation SLRefreshBoatViewModel

- (void)refreshBoatWithStateJson:(NSMutableDictionary *)jsonDic block:(RefreshBoatBlock)block{
  
  
  NSDictionary *paras = @{@"statejson" : [jsonDic mj_JSONString]};
  NSString *postUrl = [NSString backUrlWithService:@"boat" methodName:@"boatstate"];
  
  [SLNetWork postDataWithParameters:paras postUrl:postUrl complete:^(id respond, NSError *error) {
   
    if (!error) {
      block();
    }
  }];
}


@end
